package com.aaa.mapper;

import com.aaa.entity.Staff;
import com.aaa.vo.StaffVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【staff】的数据库操作Mapper
* @createDate 2024-12-25 09:33:07
* @Entity com.aaa.entity.Staff
*/
public interface StaffMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Staff record);

    int insertSelective(Staff record);

    Staff selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Staff record);

    int updateByPrimaryKey(Staff record);

    //根据账号和密码查询数据库-->方法名   方法参有什么  方法的返回类型是什么
    Staff selectByAccountAndPwd(@Param("staffName") String staffName,@Param("password") String password);

    List<Staff> selectByCondition(StaffVo staffVo);

    Staff selectByStaffId(String staffId);
}












